<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="/_include/Head.jsp"%>
<title>添加字段</title>
</head>
<body class="dialog">
<div class="main-content">
	<form>
		<div class="form-group row">
			<label class="col-sm-3 col-form-label text-sm-right">字段名称</label>
			<div class="col-sm-7">
				<input class="form-control form-control-sm" type="text" id="fieldLabel">
			</div>
		</div>
		<div class="form-group row">
			<label class="col-sm-3 col-form-label text-sm-right">字段类型</label>
			<div class="col-sm-7">
				<select class="form-control form-control-sm" id="type">
                    <option value="TEXT">文本</option>
                    <option value="NTEXT">多行文本</option>
                    <option value="PHONE">电话</option>
                    <option value="EMAIL">邮箱</option>
                    <option value="URL">链接</option>
                    <option value="SERIES">自动编号</option>
                    <option value="NUMBER">整数</option>
                    <option value="DECIMAL">货币 (小数)</option>
                    <option value="DATE">日期</option>
                    <option value="DATETIME">日期时间</option>
					<option value="PICKLIST">列表 (单选)</option>
					<option value="MULTISELECT">多选</option>
					<option value="CLASSIFICATION">分类</option>
                    <option value="FILE">文件</option>
                    <option value="IMAGE">图片</option>
                    <option value="AVATAR">头像</option>
                    <option value="REFERENCE">引用 (关联)</option>
					<option value="BOOL">布尔 (是/否)</option>
					<optgroup label="保留类型" class="bosskey-show">
						<option value="STATE">状态</option>
					</optgroup>
				</select>
			</div>
		</div>
		<div class="form-group row hide J_dt-REFERENCE">
			<label class="col-sm-3 col-form-label text-sm-right">选择引用实体</label>
			<div class="col-sm-7">
				<select class="form-control form-control-sm" id="refEntity">
				</select>
			</div>
		</div>
		<div class="form-group row hide J_dt-CLASSIFICATION">
			<label class="col-sm-3 col-form-label text-sm-right">选择分类数据</label>
			<div class="col-sm-7">
				<select class="form-control form-control-sm" id="refClassification">
				</select>
			</div>
		</div>
        <div class="form-group row hide J_dt-STATE">
            <label class="col-sm-3 col-form-label text-sm-right">状态类 (Enum)</label>
            <div class="col-sm-7">
                <input class="form-control form-control-sm" type="text" id="stateClass" placeholder="com.rebuild.server.helper.state.HowtoState">
            </div>
        </div>
		<div class="form-group row">
			<label class="col-sm-3 col-form-label text-sm-right">备注</label>
			<div class="col-sm-7">
				<textarea class="form-control form-control-sm row2x" id="comments" maxlength="100" placeholder="可选"></textarea>
			</div>
		</div>
		<div class="form-group row pb-0">
			<label class="col-sm-3 col-form-label text-sm-right"></label>
			<div class="col-sm-7">
				<label class="custom-control custom-control-sm custom-checkbox custom-control-inline mb-0">
					<input class="custom-control-input" type="checkbox" id="saveAndNew">
					<span class="custom-control-label"> 继续添加下一个</span>
				</label>
			</div>
		</div>
		<div class="form-group row footer">
			<div class="col-sm-7 offset-sm-3">
            	<button class="btn btn-primary" type="button" data-loading-text="请稍后">确定</button>
            	<button class="btn btn-link" type="button" onclick="parent.RbModal.hide()">取消</button>
			</div>
		</div>
	</form>
</div>
<%@ include file="/_include/Foot.jsp"%>
<script src="${baseUrl}/assets/js/entityhub/field-new.jsx" type="text/babel"></script>
</body>
</html>